package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:56
 * @Description: TODO
 */
public class VisitInfo {
    private String time;

    private String location;

    private String imageSrc;

    private String parentSrc;

    public com.caipin.domain.web.VisitInfo setTime(String time) {
        this.time = time;
        return this;
    }

    public com.caipin.domain.web.VisitInfo setLocation(String location) {
        this.location = location;
        return this;
    }

    public com.caipin.domain.web.VisitInfo setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
        return this;
    }

    public com.caipin.domain.web.VisitInfo setParentSrc(String parentSrc) {
        this.parentSrc = parentSrc;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.VisitInfo))
            return false;
        com.caipin.domain.web.VisitInfo other = (com.caipin.domain.web.VisitInfo)o;
        if (!other.canEqual(this))
            return false;
        Object this$time = getTime(), other$time = other.getTime();
        if ((this$time == null) ? (other$time != null) : !this$time.equals(other$time))
            return false;
        Object this$location = getLocation(), other$location = other.getLocation();
        if ((this$location == null) ? (other$location != null) : !this$location.equals(other$location))
            return false;
        Object this$imageSrc = getImageSrc(), other$imageSrc = other.getImageSrc();
        if ((this$imageSrc == null) ? (other$imageSrc != null) : !this$imageSrc.equals(other$imageSrc))
            return false;
        Object this$parentSrc = getParentSrc(), other$parentSrc = other.getParentSrc();
        return !((this$parentSrc == null) ? (other$parentSrc != null) : !this$parentSrc.equals(other$parentSrc));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.VisitInfo;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $time = getTime();
        result = result * 59 + (($time == null) ? 43 : $time.hashCode());
        Object $location = getLocation();
        result = result * 59 + (($location == null) ? 43 : $location.hashCode());
        Object $imageSrc = getImageSrc();
        result = result * 59 + (($imageSrc == null) ? 43 : $imageSrc.hashCode());
        Object $parentSrc = getParentSrc();
        return result * 59 + (($parentSrc == null) ? 43 : $parentSrc.hashCode());
    }

    public String toString() {
        return "VisitInfo(time=" + getTime() + ", location=" + getLocation() + ", imageSrc=" + getImageSrc() + ", parentSrc=" + getParentSrc() + ")";
    }

    public String getTime() {
        return this.time;
    }

    public String getLocation() {
        return this.location;
    }

    public String getImageSrc() {
        return this.imageSrc;
    }

    public String getParentSrc() {
        return this.parentSrc;
    }
}

